package com.nbsaas.boot.front.common;

import com.nbsaas.boot.config.ext.apis.ConfigExtApi;
import com.nbsaas.boot.customer.api.domain.config.SiteConfig;
import com.nbsaas.boot.rest.response.ResponseObject;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 对外控制器
 */
@RestController
@RequestMapping("/front/config")
public class ConfigAction {


    @Resource
    private ConfigExtApi configExtApi;

    @RequestMapping("/info")
    public ResponseObject<SiteConfig> info() {
        return configExtApi.info(SiteConfig.class);
    }


}